<?php
/** 
 * Copyright (C) 2009 João Neto
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 * @version controllernotfoundexception - 19/07/2009 - joaoneto
 * @package Expression package is undefined on line 24, column 28 in Templates/Scripting/EmptyPHP_1.
 */
defined('_JEXEC') or die( 'Restricted access' ); //no direct access

/**
 * This exception is called if the Router not find the request controller
 */
class ModelNotFound_Exception extends Exception
{
	/**
	 * default error string
	 * @var string
	 */
	private $_msg = "Model Not Found";

	/**
	 * controller not found error code
	 * @var string
	 */
	private $_code = '002';

	/**
	 * @param string $modelClass MOdel Names
	 */
	function __construct( $modelClass, $path )
	{

		parent::__construct( ' Model ' . $modelClass . 'Not Found on path ' . $path, $this->_code );
	}
}